/*登录表单中email与password的字体动画*/
$(function () {
    const labels = document.querySelectorAll(".form-control label")
    labels.forEach(label => {
        label.innerHTML = label.innerText.split('').map((letter, index) => `<span style="transition-delay:${index * 35}ms">${letter}</span>`).join('');
    });

    function getCookie(cname) {
        let name = cname + "=";
        let ca = document.cookie.split(';');
        for (let i = 0; i < ca.length; i++) {
            let c = ca[i].trim();
            if (c.indexOf(name) === 0) return c.substring(name.length, c.length);
        }
        return "";
    }
});

//禁止页面缩放，ctrl+滚轮，无法禁止
$(function () {
    $(document).keydown(function (event) {
        if ((event.ctrlKey === true || event.metaKey === true) && (event.which === 189 || event.which === 187 || event.which === 173 || event.which === 61 || event.which === 107 || event.which === 109))
        {
            event.preventDefault();
        }
    });

    $(window).bind('mousewheel DOMMouseScroll', function (event) {
        if (event.ctrlKey === true || event.metaKey) {
            event.preventDefault();
        }
    });
})

$(function () {

    $("#registrer").click(function () {
        alert("注册成功");
    });
})